package com.doubi.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * MrDoubi
 * 2020年3月25日 13:50:45
 * 定时器
 */
@Component
@Slf4j
public class TaskTimer {

    /*@Autowired
    private ApiOrderInfoService apiOrderInfoService;

    @Scheduled(cron = "0 * * * * ? ")
    @Async("taskExecutor")
    public void updateOrder() {
        log.info("更新订单状态");
        apiOrderInfoService.updateOrderByTask();
    }*/
}
